package com.mordenx.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 秒杀订单
 * @author Administrator
 *
 */
public class SecKillingOrder implements Serializable{
	private int id;//主键
	private int productId;//秒杀商品id
	private double payAmount;//支付金额
	private int userId;//用户id
	private int merchantId;//商家id
	private Date createTime;//创建时间
	private Date payTime;//支付时间
	private int payStatus;//支付转态  1,未支付 2,已支付，3，退款成功,4。用户发起退款申请 5，退款失败
	private String receivingAddress;//收货人地址
	private String receivingName;//收货人姓名
	private String receivingPhone;//收货人电话
	private String tradesErialNumber;//交易流水号
	private int num;//数量
	private int payType;//1代表支付宝  2代表微信  3代表银联

	@Override
	public String toString() {
		return "SecKillingOrder{" +
				"id=" + id +
				", productId=" + productId +
				", payAmount=" + payAmount +
				", userId=" + userId +
				", merchantId=" + merchantId +
				", createTime=" + createTime +
				", payTime=" + payTime +
				", payStatus=" + payStatus +
				", receivingAddress='" + receivingAddress + '\'' +
				", receivingName='" + receivingName + '\'' +
				", receivingPhone='" + receivingPhone + '\'' +
				", tradesErialNumber='" + tradesErialNumber + '\'' +
				", num=" + num +
				", payType=" + payType +
				'}';
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getProductId() {
		return productId;
	}

	public void setProductId(int productId) {
		this.productId = productId;
	}

	public double getPayAmount() {
		return payAmount;
	}

	public void setPayAmount(int payAmount) {
		this.payAmount = payAmount;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public int getMerchantId() {
		return merchantId;
	}

	public void setMerchantId(int merchantId) {
		this.merchantId = merchantId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getPayTime() {
		return payTime;
	}

	public void setPayTime(Date payTime) {
		this.payTime = payTime;
	}

	public int getPayStatus() {
		return payStatus;
	}

	public void setPayStatus(int payStatus) {
		this.payStatus = payStatus;
	}

	public String getReceivingAddress() {
		return receivingAddress;
	}

	public void setReceivingAddress(String receivingAddress) {
		this.receivingAddress = receivingAddress;
	}

	public String getReceivingName() {
		return receivingName;
	}

	public void setReceivingName(String receivingName) {
		this.receivingName = receivingName;
	}

	public String getReceivingPhone() {
		return receivingPhone;
	}

	public void setReceivingPhone(String receivingPhone) {
		this.receivingPhone = receivingPhone;
	}

	public String getTradesErialNumber() {
		return tradesErialNumber;
	}

	public void setTradesErialNumber(String tradesErialNumber) {
		this.tradesErialNumber = tradesErialNumber;
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	public int getPayType() {
		return payType;
	}

	public void setPayType(int payType) {
		this.payType = payType;
	}
}
